"use client"
import React from 'react'
import style from './index.module.scss'
import { MyIcons } from '@/utils/icon'

export default function index({obj, border, color}) {
  return (
    <div className={style['cart-container']} style={{border: border && '1px solid transparent'}}>
      <MyIcons className={style['icon']} type={obj.icon}></MyIcons>
      <div className={style['data']}>
        <h2 style={{color: color || ''}}>{obj.data}</h2>
        <span>{obj.title}</span>
      </div>
    </div>
  )
}
